﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TPOJ.DALFactory;
using TPOJ.IDAL;
using TPOJ.Model;

namespace TPOJ.BLL
{
    public class ForumBO
    {
        private static readonly IForumDAO dal = DataAccess.CreateForumDAO();

        public IList<ForumMessage> GetForumMessagesByProblemId(int problemId)
        {
            return dal.GetForumMessagesByProblemId(problemId);
        }

        public void Create(ForumMessage message)
        {
            dal.Create(message);
        }

        public ForumMessage GetForumMessage(int id)
        {
            return dal.GetForumMessage(id);
        }
    }
}
